PokemonColor

@Serializable
data class PokemonColor(val id: Int, val name: String, val names: List<Name>, val pokemonSpecies: List<Handle.Named<PokemonSpecies>>) : NamedModel(source)

Colors are used for categorizing Pokémon for search purposes. See: https://pokeapi.co/docs/v2#pokemoncolor

Parameters

id

The identifier for this Pokémon color resource.

name

The name for this Pokémon color resource.

names

The name of this Pokémon color listed in different languages.

pokemonSpecies

A list of the Pokémon species that have this color.

Constructors

Link copied to clipboard
constructor(id: Int, name: String, names: List<Name>, pokemonSpecies: List<Handle.Named<PokemonSpecies>>)

Properties

Link copied to clipboard
open override val id: Int
Link copied to clipboard
open override val name: String
Link copied to clipboard